﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="orderdetail.aspx.cs" Inherits="OF.Web.user.orderdetail" %>

<%@ Register Assembly="OF.Controls" Namespace="OF.Controls" TagPrefix="cc1" %>
<%@ Register Src="~/user/controls/left.ascx" TagPrefix="uc1" TagName="left" %>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
</head>
<body>
    <form id="form1" runat="server">

        <uc1:left runat="server" ID="left" />

        <div>
            <asp:HiddenField ID="hforderid" runat="server" />
            <asp:HiddenField ID="hfstate" runat="server" />
            <div id="divbtn" runat="server">
                <asp:Button ID="btnYes" CssClass="btn btn-primary" runat="server" Text="处理" OnClick="btnYes_Click" />
                <asp:Button ID="btnNo" CssClass="btn btn-link" runat="server" Text="取消" OnClientClick="return confirm('该操作会导致该订单被取消！')"
                    OnClick="btnNo_Click" />
            </div>
            <table>
                <tr>
                    <td>订单编号:</td>
                    <td>
                        <asp:Label ID="labordersn" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>订餐类型:</td>
                    <td>
                        <asp:Label ID="labtype" runat="server" Style="color: red"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>联系电话:</td>
                    <td>
                        <asp:Label ID="labphone" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>预约时间:</td>
                    <td>
                        <asp:Label ID="labtime" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr id="trcount" runat="server">
                    <td>预约人数:</td>
                    <td>
                        <asp:Label ID="labcount" runat="server">0</asp:Label>人
                    </td>
                </tr>
                <tr id="traddress" runat="server">
                    <td>送餐地址:</td>
                    <td>
                        <asp:Label ID="labaddress" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>说明:</td>
                    <td>
                        <asp:Label ID="labremark" runat="server"></asp:Label>
                    </td>
                </tr>
            </table>

            <table>
                <thead>
                    <tr>
                        <th>编号</th>
                        <th>菜名</th>
                        <th>数量</th>
                        <th>单价</th>
                        <th>总价</th>

                    </tr>
                </thead>
                <tbody>
                    <asp:Repeater ID="rptList" runat="server">
                        <ItemTemplate>
                            <tr>
                                <td><%#Eval("id") %></td>
                                <td><%#GetName(Eval("dishid")) %></td>
                                <td><%#Eval("count") %></td>
                                <td><%#Eval("price") %></td>
                                <td><%#Convert.ToDecimal(Eval("count"))*Convert.ToDecimal(Eval("price")) %></td>
                            </tr>
                        </ItemTemplate>
                    </asp:Repeater>
                </tbody>
            </table>
        </div>


    </form>
</body>
</html>


